package com.extend_.improve;

import com.extend_.Graduate;
import com.extend_.Pupil;

/**
 * @Author 小闽
 * @Date 2024/8/9 9:41
 * @PackageName: com.extend_.improve
 * @ClassName: Extends01
 * @Description: 继承测试
 * @Version 1.0
 */
public class Extends01 {
    public static void main(String[] args) {
        com.extend_.Pupil pupil = new Pupil();
        pupil.name = "小明";
        pupil.age = 22;
        pupil.testing();
        pupil.setScore(62);
        pupil.showInfo();

        com.extend_.Graduate graduate = new Graduate();
        graduate.name = "金角大王";
        graduate.age = 30;
        graduate.testing();
        graduate.setScore(15);
        graduate.showInfo();
    }
}
